package burkun.test;

import java.util.LinkedList;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import org.hit.burkun.db.DBHelper;
import org.hit.burkun.mapping.BlockOfflineMapping;
import org.hit.burkun.mapping.IOfflineMappingProcessor.DBKEY;

public class OfflineMapping {

	public static void main(String[] args) {
		BlockOfflineMapping bm = new BlockOfflineMapping(DBHelper.getServerDBHelper());
		LinkedList<String> ids = new LinkedList<>();
		ids.add("ABCC8");
		bm.mapping(DBKEY.GENE_SYMBOL, DBKEY.GeneID, ids);
		Map<String, Set<String>> res= bm.getResult();
		Set<Entry<String, Set<String>>> entries = res.entrySet();
		for(Entry<String, Set<String>> entry : entries){
			String key = entry.getKey();
			System.out.println(key);
			Set<String> values = entry.getValue();
			for(String v : values){
				System.out.println(v);
			}
		}
	}

}
